import React from 'react'
import '@/assets/scss/base.scss'
import { Route, Redirect } from 'react-router-dom'
import Login from '@/views/xyf/Login'
import Home from '@/views/xyf/Home'
import UserHOC from '@/components/xyf/HOC/UserHOC'
const NewComponent = UserHOC(Home)

export default function App() {
    return (
        <div className="App">
            <Redirect from="/"  to="/index" />
            {/* 最后要改 */}
            {/* <Route path="/home" component={NewComponent}></Route>  */}
            <Route path="/index" component={Home}></Route>
            <Route path="/login" component={Login}></Route>
        </div>
    )
}
